package com.zzxy.spring.controller;

import org.springframework.web.HttpRequestHandler;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author aven
 * @description: TODO
 */
public class HttpController implements HttpRequestHandler {
    @Override
    public void handleRequest(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        req.setAttribute("name","张无忌");
        req.getRequestDispatcher("/WEB-INF/views/user/userList.jsp").forward(req, resp);
    }
}
